float GetMeshMeasure(UStaticMeshComponent& A)
{
	FOccluderVertexArray VertexArray;
	//unneeded
	TArray<int32> T;
	FOccluderVertexArray N;
	TArray<FVector2D> UV;
	TArray<FProcMeshTangent> T2;
	//unneeded finished
	UKismetProceduralMeshLibrary::GetSectionFromStaticMesh(A.GetStaticMesh(), 0, 0, VertexArray, T, N, UV, T2);

	float Min = -1, Max = -1;
	bool FirstTime = true;
	for (FVector& i : VertexArray)
	{
		if (FirstTime)
		{
			Min = i.Y;
			Max = i.Y;
			FirstTime = false;
		}
		else
		{
			if (i.Y < Min)
				Min = i.Y;
			if (i.Y > Max)
				Max = i.Y;
		}
	}
	return Max - Min;
}